<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>美嘉饲料</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="Expires" CONTENT="-1">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
<link rel="stylesheet" href="/m/css/style.css">
<link href="<%=basePath%>skin/css/validform/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=basePath%>skin/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>skin/js/validform/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" src="<%=basePath%>m/js/common.js"></script>
<script language="javascript">
	$().ready(function(){
		 //验证
		 var validform = $("#form1").Validform({
			btnSubmit:"#save",
			tiptype:1
		 });
		 validform.addRule([
			{
			    ele:"#pPassword",
			    datatype:"*",
			    nullmsg:"请输入当前密码！"
			},
			{
			    ele:"#nPassword",
			    datatype:"*",
			    nullmsg:"请输入新密码！"
			},
			{
			    ele:"#cfnPassword",
			    datatype:"*",
			    nullmsg:"请输入确认新密码！",
			    recheck:"nPassword"
			}
		 ]);
	});
</script>
</head>
<body>
	<c:import url="/m/layouts/top.jsp" />
	<a name="top"></a>
	<!--header-->
	<header>
		<div class="header">
			<a href="/m/member/index.shtml" class="header-a-back"><span>返回</span></a>
			<a href="/m/index.html" class="header-a-home"><span>首页</span></a>
			<h2>修改密码</h2>
		</div>
	</header>
	<div class="clear"></div>
	<form id="form1" name="form1" method="post" action="<%=basePath%>m/member/updatepassword.shtml">
	<input type="hidden" name="id" value="${member.id}" />
		<div class="addr-div">
			<dl>
				<dd>
					<span class="form_hd">手机：</span><span class="form_td">${member.username }</span>
				</dd>
				<dd>
					<span class="form_hd">当前密码：</span><span class="form_td">
					<input name="pPassword" id="pPassword" type="password" maxlength="30" class="text_input" autofocus>
					</span>
				</dd>
				<dd>
					<span class="form_hd">新密码 ：</span><span class="form_td">
					<input name="nPassword" id="nPassword" type="password" maxlength="30" class="text_input">
					</span>
				</dd>
				<dd>
					<span class="form_hd"> 确认新密码 ：</span><span class="form_td">
					<input name="cfnPassword" id="cfnPassword" type="password" maxlength="30" class="text_input">
					</span>
				</dd>
			</dl>
		</div>
		<div class="ui-btn-area">
			<input type="button" name="button" class="btn_red" value="完成" id="save"/>
		</div>
	</form>
	<c:import url="/m/layouts/foot.jsp" />
</body>
</html>